package com.my.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.my.entity.Page;
import com.my.entity.vo.LeaveBillVo;

@Repository
public interface LeaveBillMapperExt extends LeaveBillMapper {
	List<LeaveBillVo> queryByUserId(@Param("userId") Long userId);

	List<LeaveBillVo> queryByUserIdForPage(@Param("userId") Long userId,
			@Param("page") Page page, @Param("leaveDate") String leaveDate,
			@Param("empName") String empName);

	int countQueryByUserIdForPage(@Param("userId") Long userId,
			@Param("leaveDate") String leaveDate,
			@Param("empName") String empName);
	
	LeaveBillVo selectByPrimaryKeyVo(@Param("id") Long id);
}